<script>
	function addsubmit() {
		$.ajax({
 			type: "POST",
 			url: U('group/Group/quitGroup'),
 			data:   "gid={$gid}",
 			success: function(msg){
 				if(msg =='1'){
 					$('#pop1').hide();
 					$('#pop2').show();
 				}else{
 					ui.error('退出失败');
 				}
 			} 
		}); 
	}
</script>

<div style="width:300px;" id="pop1">
	<div style="padding:20px">确定脱离“{$groupinfo.name}”群组吗？</div>
	<div class="answers">
		<input name="input" type="button" class="btn_b" value="确 定" onclick="addsubmit();"/>
		<input name="input2" type="button" class="btn_w" value="取 消" onclick="javascript:ui.box.close();"/>
	</div>
</div>

<div id="pop2" style="display:none;width:350px;">
	<div style="padding:20px">
		脱离“{$groupinfo.name}”群组成功
	</div>
	<div class="answers">
		<input name="input" type="button" class="btn_b" value="确 定" onclick="javascript:parent.window.location.reload();ui.box.close();"/>
	</div>
</div>